package com.ytjj.qmyx.users.model;

import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;


@Data
@Accessors(chain = true)
public class LoginLog implements Serializable {
    /**
     * 用户登陆记录表
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     * 用户id
     *
     * @mbg.generated
     */
    private Integer userId;

    /**
     * 登录时间
     *
     * @mbg.generated
     */
    private Date loginTime;

    /**
     * 登录平台
     *
     * @mbg.generated
     */
    private String platform;

    /**
     * 登录ip
     *
     * @mbg.generated
     */
    private String ip;

    /**
     * 版本号
     *
     * @mbg.generated
     */
    private String version;

    /**
     * 手机型号
     *
     * @mbg.generated
     */
    private String phoneModel;

    private static final long serialVersionUID = 1L;

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", loginTime=").append(loginTime);
        sb.append(", platform=").append(platform);
        sb.append(", ip=").append(ip);
        sb.append(", version=").append(version);
        sb.append(", phoneModel=").append(phoneModel);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}